import request from '@/utils/request'

// 查询消费详细列表
export function listDetails(query) {
  return request({
    url: 'project/yzx/jishi/details/list',
    method: 'get',
    params: query
  })
}
export function listsz() {
  return request({
    url: 'project/yzx/jishi/details/listsz',
    method: 'get',
  })
}
export function listDetails2(query) {
  return request({
    url: 'project/yzx/jishi/details/list2',
    method: 'get',
    params: query
  })
}
export function listDetailstd(query) {
  return request({
    url: 'project/yzx/jishi/details/listtd1',
    method: 'get',
    params: query
  })
}
export function listDetails1(query) {
  return request({
    url: 'project/yzx/jishi/details/list1',
    method: 'get',
    params: query
  })
}
export function listpjDetails() {
  return request({
    url: 'project/yzx/jishi/details/listpj',
    method: 'get',
  })
}
// 查询消费详细详细
export function paidui() {
  return request({
    url: 'project/yzx/jishi/details/paidui',
    method: 'get',
  })
}

// 新增消费详细
export function addDetails(data) {
  return request({
    url: 'project/yzx/jishi/details/add',
    method: 'post',
    data: data
  })
}

export function addDetails1(data) {
  return request({
    url: 'project/yzx/jishi/details/add1',
    method: 'post',
    data: data
  })
}
export function addDetails2(data) {
  return request({
    url: 'project/yzx/jishi/details/add2',
    method: 'post',
    data: data
  })
}
// 修改消费详细
export function xiazhong() {
  return request({
    url: 'project/yzx/jishi/details/xiazhong',
    method: 'put',
  })
}

export function huanzhong(leftid,rightid) {
  return request({
    url: `project/yzx/jishi/details/huanzhong/${leftid}/${rightid}`,
    method: 'post',
  })
}

export function huanfang(data) {
  return request({
    url: 'project/yzx/jishi/details/huanfang',
    method: 'put',
    data: data
  })
}
export function updateDetails(data) {
  return request({
    url: 'project/yzx/jishi/details/ud',
    method: 'put',
    data: data
  })
}
export function pingjiaA(data) {
  return request({
    url: 'project/yzx/jishi/details/udA',
    method: 'put',
    data: data
  })
}
export function pingjiaB(data) {
  return request({
    url: 'project/yzx/jishi/details/udB',
    method: 'put',
    data: data
  })
}
export function pingjiaC(data) {
  return request({
    url: 'project/yzx/jishi/details/udC',
    method: 'put',
    data: data
  })
}
export function pingjiaD(data) {
  return request({
    url: 'project/yzx/jishi/details/udD',
    method: 'put',
    data: data
  })
}
export function pingjiaE(data) {
  return request({
    url: 'project/yzx/jishi/details/udE',
    method: 'put',
    data: data
  })
}
// 查询消费详细详细
export function sel(ID) {
  return request({
    url: '/project/yzx/jishi/details/' + ID,
    method: 'get'
  })
}
export function getDetails(IDk) {
  return request({
    url: '/project/yzx/jishi/details/GD/' + IDk,
    method: 'get'
  })
}
export function updateDetails1(data) {
  return request({
    url: '/project/yzx/jishi/details/u1',
    method: 'put',
    data: data
  })
}
// 修改消费详细

